GPUDATABASE: gpu cpu
	nvcc tableScan.o hashJoin.o groupby.o orderBy.o materialize.o driver.o  -lrt -lcuda -pg -o GPUDATABASE

cpu: driver.cu 
	nvcc -c  -g -G -gencode arch=compute_20,code=sm_20 driver.cu

gpu: tableScan.cu hashJoin.cu groupby.cu orderBy.cu materialize.cu 
	nvcc -c -g -G -gencode arch=compute_20,code=sm_20 tableScan.cu hashJoin.cu groupby.cu orderBy.cu materialize.cu 

all: GPUDATABASE

clean:
	rm -rf *.o GPUDATABASE
